package cn.rongdao.jrkabao.ui.message.adapter;

import android.view.View;

import com.mifengkong.frtools.ui.adapter.recyclerview.FRBaseRecyclerViewHolder;

import cn.rongdao.jrkabao.bean.message.MessageBean;
import cn.rongdao.jrkabao.ui.message.uicomponent.MessageUIComponent;

/**
 * Created by jack on 2017/8/17
 */

public class MessageViewHolder extends FRBaseRecyclerViewHolder<MessageBean> {

    private MessageUIComponent messageUIComponent;

    public MessageViewHolder(View view) {
        super(view);
        messageUIComponent = (MessageUIComponent) view;
    }

    @Override
    protected void onItemDataUpdated(MessageBean messageBean) {
        messageUIComponent.setContent(messageBean);
    }
}